package com.zto.sch.base.normal;

import org.apache.commons.lang.exception.ExceptionUtils;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-12-23 10:00
 **/
public class JsonTest {
    private static Logger logger = LoggerFactory.getLogger(JsonTest.class);

    public static void main(String[] args) {
        String str = "[{\"value\":\"1\",\"name\":\"新人须知\"},{\"value\":\"2\",\"name\":\"业务准则\"},{\"value\":\"3\",\"name\":\"业务技巧\"}]";
    }

    @Test
    public void test() {
        try {
            int i = 1 / 0;

        } catch (Exception e) {
            logger.error("异常信息测试", e);
            System.out.println("---------------------------------");
            logger.error("异常信息测试:[{}]", ExceptionUtils.getFullStackTrace(e));

        }
    }
}
